import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick.Controls 2.1
import QtQuick.Layouts 1.1
import GetSystemInfoAPI 1.0


ApplicationWindow {
    id: mainWind
    visible: true
    width: Screen.desktopAvailableWidth
    height: Screen.desktopAvailableHeight
    title: qsTr("LMUI");

    background: Image {
       source: "/images/wvga/test2.jpeg"
    }


    onActiveFocusItemChanged: {  //保存了当前哪个控件获取了焦点,打印出来,与objectname混合使用
        console.log("active focus item changed", activeFocusItem,"object name:",activeFocusItem)
    }

    TitleBar {
        id:tMeu
        width:Screen.desktopAvailableWidth
        height:Screen.desktopAvailableHeight/14
    }

    /*
    MultiPointTouchArea {
        anchors.fill: parent
        onTouchUpdated: {
                console.log("Touch point count: " + touchPoints.length)
        }
    }
    */

    TabletWindow{
        id:menuWnd
        //anchors.top: tMeu.bottom
        visible: true
        width: Screen.desktopAvailableWidth
        height: Screen.desktopAvailableHeight-tMeu.height
    }


    Loader{
        id:mainloader;
        anchors.centerIn: parent;
    }

}
